﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Ec.NETCoreFramework.Common.Core
{
    /// <summary>
    /// 响应返回类型
    /// </summary>
    public enum EnumReturnCode
    {
        /// <summary>
        /// 成功
        /// </summary>
        Success = 200,
        /// <summary>
        /// 系统内部错误
        /// </summary>
        SystemError = 1,
        /// <summary>
        /// 缺少必填参数
        /// </summary>
        MissParam = 2,
        /// <summary>
        /// 未知错误
        /// </summary>
        UnknowError = 3
    }

    /// <summary>
    /// 终端
    /// </summary>
    public enum TerminalEnum
    {
        /// <summary>
        /// 移动端
        /// </summary>
        Mobile = 0,

        /// <summary>
        /// PC端
        /// </summary>
        PC = 1
    }

    public enum ErrorCodeEnum
    {
        /// <summary>
        /// 系统异常
        /// </summary>
        SystemError = 1000,

        /// <summary>
        /// 未添加应用
        /// </summary>
        NoneApplication = 1001,

        /// <summary>
        /// 未找到服务商信息
        /// </summary>
        NoneService = 1002,

        /// <summary>
        /// 无可用的三方应用
        /// </summary>
        NoneSuiteApp = 1003,

        /// <summary>
        /// 无企业微信链接配置
        /// </summary>
        NoneQYApi = 1004,

        /// <summary>
        /// 当前用户不属于任何企业
        /// </summary>
        NoneWxGroup = 1005,

        /// <summary>
        /// 缺失参数
        /// </summary>
        MissPara = 1006
    }
    /// <summary>
    /// 开放平台输出类型
    /// </summary>
    [Serializable]
    public enum FormatType
    {
        /// <summary>
        /// json格式
        /// </summary>
        Json,
        /// <summary>
        /// XML格式
        /// </summary>
        Xml,
        /// <summary>
        /// 二进制流
        /// </summary>
        Binary,
        /// <summary>
        /// 纯文本
        /// </summary>
        Text
    }
}
